﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AEBaseCalcCSharp
{
    class GasPlants : Structure
    {
        const int baseCostGasPlants = 1;
        private int baseEnergyGasPlants;
        const string structureNameGasPlants = "GasPlants";

        public override int baseCost { get { return baseCostGasPlants; } }
        public override int baseEnergy { get { return baseEnergyGasPlants; } }
        public override string structureName { get { return structureNameGasPlants; } }

        public GasPlants(int position, int astroGas)
        {
            if (position == 5)
            {
                baseEnergyGasPlants = astroGas + 2;
            }
            else if (position == 4)
            {
                baseEnergyGasPlants = astroGas + 1;
            }
            else
            {
                baseEnergyGasPlants = astroGas;
            }
        }
    }
}
